package collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ArrayToListDemo {
    public static void main(String[] args) {
        String[] array = {"12","23","34","45"};
        System.out.println("array"+Arrays.toString(array));

        List<String> list = Arrays.asList(array);
        System.out.println("list"+list);

        List<String> list1 = new ArrayList<>(list);
        System.out.println("list1:" + list1);
        list1.add("!!!!!");
        System.out.println("list1:" + list1);

    }
}
